package com.sj.common.dto.role;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: xiaoqi
 * Date: 2022-03-24
 * Time: 下午 14:12
 * Description: 添加角色权限数据模型
 *
 * @author xiaoqi
 * @since 2022-03-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("添加角色权限数据模型")
public class SetRoleMenuParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("菜单id列表")
    @NotNull(message = "菜单id列表不能为空")
    private Integer[] menuIds;

    @ApiModelProperty("角色id")
    @NotNull(message = "角色id不能为空")
    private Integer roleId;
}